using System;
using Moq;
using SpecMakerForums.Domain.Interfaces;

namespace SpecMakerForums.Domain
{
    public class Post
    {
        private readonly IUserValidationService _service;

        public Post(IUserValidationService service)
        {
            _service = service;
        }

        public bool CanUserView(string user)
        {
          return  _service.CheckUserPermForPost(this, user);
        }
    }
}